package com.dbdata.move.model;

// Generated cafuc by Hibernate Tools 4

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * SkilledCheck generated by hbm2java
 */
@Entity
@Table(name = "skilled_check")
public class SkilledCheck implements java.io.Serializable {

	private Long id;
	private License license;
	private Byte flowStatus;
	private Long principleId;
	private Long checkId;
	private Date checkDate;
	private Byte checkType;
	private Long flyType;
	private Byte checkResult;

	public SkilledCheck() {
	}

	public SkilledCheck(License license, Byte flowStatus, Long principleId,
			Long checkId, Date checkDate, Byte checkType, Long flyType,
			Byte checkResult) {
		this.license = license;
		this.flowStatus = flowStatus;
		this.principleId = principleId;
		this.checkId = checkId;
		this.checkDate = checkDate;
		this.checkType = checkType;
		this.flyType = flyType;
		this.checkResult = checkResult;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "LICENSE_ID")
	public License getLicense() {
		return this.license;
	}

	public void setLicense(License license) {
		this.license = license;
	}

	@Column(name = "FLOW_STATUS")
	public Byte getFlowStatus() {
		return this.flowStatus;
	}

	public void setFlowStatus(Byte flowStatus) {
		this.flowStatus = flowStatus;
	}

	@Column(name = "PRINCIPLE_ID")
	public Long getPrincipleId() {
		return this.principleId;
	}

	public void setPrincipleId(Long principleId) {
		this.principleId = principleId;
	}

	@Column(name = "CHECK_ID")
	public Long getCheckId() {
		return this.checkId;
	}

	public void setCheckId(Long checkId) {
		this.checkId = checkId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CHECK_DATE", length = 19)
	public Date getCheckDate() {
		return this.checkDate;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}

	@Column(name = "CHECK_TYPE")
	public Byte getCheckType() {
		return this.checkType;
	}

	public void setCheckType(Byte checkType) {
		this.checkType = checkType;
	}

	@Column(name = "FLY_TYPE")
	public Long getFlyType() {
		return this.flyType;
	}

	public void setFlyType(Long flyType) {
		this.flyType = flyType;
	}

	@Column(name = "CHECK_RESULT")
	public Byte getCheckResult() {
		return this.checkResult;
	}

	public void setCheckResult(Byte checkResult) {
		this.checkResult = checkResult;
	}

}
